/** @format */

import { createApp } from 'vue'
import App from './App.vue'

const app = createApp(App)

// 封装全局聚焦指令
app.directive('focus', {
	// 指令所在元素挂载后自动执行
	mounted(el) {
		el.focus()
	}
})
app.mount('#app')
